package com.book.pojo.com.book.entity;
import java.util.List;

public class PageResult<T> {

    private Long total;//总记录数
    private List<T> records;//查询的记录
    private Long size; //每页显示条数
    private Long current; //当前页
    private List<T> orders;
    private boolean optimizeCountSql; //优化sql
    private boolean isSearchCount;

    public PageResult() {
    }

    public PageResult(Long total, List<T> records, Long size, Long current, List<T> orders, boolean optimizeCountSql, boolean isSearchCount) {
        this.total = total;
        this.records = records;
        this.size = size;
        this.current = current;
        this.orders = orders;
        this.optimizeCountSql = optimizeCountSql;
        this.isSearchCount = isSearchCount;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getCurrent() {
        return current;
    }

    public void setCurrent(Long current) {
        this.current = current;
    }

    public List<T> getOrders() {
        return orders;
    }

    public void setOrders(List<T> orders) {
        this.orders = orders;
    }

    public boolean isOptimizeCountSql() {
        return optimizeCountSql;
    }

    public void setOptimizeCountSql(boolean optimizeCountSql) {
        this.optimizeCountSql = optimizeCountSql;
    }

    public boolean isSearchCount() {
        return isSearchCount;
    }

    public void setSearchCount(boolean searchCount) {
        isSearchCount = searchCount;
    }
}
